<?php

if($_POST['dni']==""){
  
  echo "ingrese dni please";
  
}else{
   $_POST['dni'];
  
}

?>